package com.mdb.open.trade.rabbit.provider;
/*
 * Copyright (C), 2017-2019 澳发科技(MDB)
 * FileName: ScoringQuotaQueueProducer.java
 * Author:   符楚
 * Date:     2019-07-23 13:19
 * History:
 * <author>          <time>          <version>          <desc>
 * 符楚               2019-07-23          V1.00             新建
 * -----------------------------------------------------------
 * 作者姓名           修改时间           版本号            描述
 */

import com.mdb.bc.logger.LogAnnotation;
import com.mdb.open.trade.rabbit.model.MerchantQuotaEvent;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 生产评分额度信息<br>
 * <br>
 *
 * @author 符楚
 * @Date 2019-07-23 13:19
 */
@Component
public class MerchantQuotaProducer {

    @Autowired
    private RabbitTemplate rabbitTemplate;


    /**
     * 发送商户额度评分结果
     *
     * @param event
     */
    @LogAnnotation("发布商户额度队列消息")
    public void send(MerchantQuotaEvent event) {
        rabbitTemplate.convertAndSend("customerExchange", "merchant.score.quota", event);
    }

}
